package com.youi.service.impl;

import com.youi.entity.Building;
import com.youi.mapper.BuildingMapper;
import com.youi.service.BuildingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version 1.0
 * @Author: xxf
 * @CreateDate: 2020/10/29 21:38
 */
@Service
public class BuildingServiceImpl implements BuildingService {
    @Autowired
    private BuildingMapper buildingMapper;
    @Override
    public List<Building> selectAll() {
        return buildingMapper.selectAll();
    }

    @Override
    public int insert(Building building) {
        return buildingMapper.insert(building);
    }
}
